x11: update inhibit shortcuts on grab broken
authorOlivier Fourdan <ofourdan@redhat.com>
Tue, 31 Mar 2020 12:38:08 +0000 (14:38 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Tue, 19 May 2020 12:51:25 +0000 (14:51 +0200)
commit93f9138c9b42f6b0a6c5854cef7801428be6eba3
tree8ab5d15f446ff1907d91c0bd2a8f37ecfaa19a9e
parent1ace77b923c308164d7e39495b5d8aa28a0d29fb
x11: update inhibit shortcuts on grab broken

On X11, shortcuts inhibition is emulated using a grab on the keyboard.

So if another widget ungrabs the keyboard behind our back (for example
when a popup window is dismissed) that effectively disables the effects
of the shortcut inhibition on the surface and we need to update the
shortcut inhibition status accordingly.

Check for "grab-broken" events on the surface and clear existing
shortcuts inhibition for the matching seat, so that the client can be
notified and may decide to re-enable shortcut inhibition if desired.
gdk/x11/gdksurface-x11.c